package com.gsh.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Voltage implements Cloneable{
    private int vid;
    private int uid=3;
    private Date vDate;//数据日期
    private Date lDate;//数据入库日期
    private String measuringPoint;//测量点名称
    private int errType;//相序类型
    private int vMoment;//时刻
    private double vDataValue;//电压数据
    private int capacity=50;//运行容量
    private String fom="高供低计";//计量方式

    @Override
    public String toString() {
        return "Voltage{" +
                "vid=" + vid +
                ", uid=" + uid +
                ", vDate=" + vDate +
                ", lDate=" + lDate +
                ", measuringPoint='" + measuringPoint + '\'' +
                ", errType=" + errType +
                ", vMoment=" + vMoment +
                ", vDataValue=" + vDataValue +
                ", capacity=" + capacity +
                ", fom='" + fom + '\'' +
                '}';
    }

    @Override
    public Voltage clone(){
        Voltage voltage=null;
        try {
            voltage=(Voltage) super.clone();
        }catch (Exception e){
            e.printStackTrace();
        }
        return voltage;
    }
}
